﻿using Architecture.Domain.TestModel.Models;
using Architecture.CrossCutting.RepositoryPattern.Specification;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.BankManagement.QuerySpecifications
{
    public static class CompteSpecifications
    {
        public static Specification<Compte> CompteCash
        {
            get
            {
                return new DirectSpecification<Compte>(c => c.TypeCompte == TypesCompte.Cash);
            }
        }

        public static Specification<Compte> Closed
        {
            get
            {
                return new DirectSpecification<Compte>(c => c.ClosedDate != null);
            }
        }

    }
}
